/**
 * Created by LangK on 2016/12/19.
 */

export default [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/home',
    redirect: '/home/user'
  },
  {
    path: '/login',
    component: function (resolve) {
      require(['./components/Login.vue'], resolve)
    }
  },
  {
    path: '/home',
    component: function (resolve) {
      require(['./components/Home.vue'], resolve)
    },
    children: [{
      path: 'user',
      component: function (resolve) {
        require(['./components/user/user.vue'], resolve)
      }
    },
    {
      path: 'store',
      component: function (resolve) {
        require(['./components/store/store.vue'], resolve)
      }
    },
    {
      path: 'order',
      component: function (resolve) {
        require(['./components/order/order.vue'], resolve)
      }
    },
    {
      path: 'carousel',
      component: function (resolve) {
        require(['./components/carousel/carousel.vue'], resolve)
      }
    },
    {
      path: 'harness',
      component: function (resolve) {
        require(['./components/harness/harness.vue'], resolve)
      }
    },
    {
      path: 'admin',
      component: function (resolve) {
        require(['./components/administrator/administrator.vue'], resolve)
      }
    },
    {
      path: 'record',
      component: function (resolve) {
        require(['./components/record/record.vue'], resolve)
      }
    },
    {
      path: 'message',
      component: function (resolve) {
        require(['./components/message/message.vue'], resolve)
      }
    },
    {
      path: 'deposit',
      component: function (resolve) {
        require(['./components/deposit/deposit.vue'], resolve)
      }
    },
    {
      path: 'category',
      component: function (resolve) {
        require(['./components/category/category.vue'], resolve)
      }
    },
    {
      path: 'activity',
      component: function (resolve) {
        require(['./components/activity/activity.vue'], resolve)
      }
    }
    ]
  }
]
